var express = require('express');
var router = express.Router();
var {shopModel} = require('../model/model')
/* GET users listing. */
router.get('/list', function(req, res, next) {
  res.send('respond with a resource');
});
router.get("/getList", async (req, res) => {
  let data = await shopModel.find();
 
  res.send({
    data,
  });
});

module.exports = router;
